package com.bicon.botu.mall.order.processor.handler;

import com.bicon.botu.core.base.common.entity.BaseResult;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 系统设置RPC
 *
 * @author jwj
 * @date 2018/6/14 9:02
 */
public interface BaseRpc {

    /**
     * 根据多个地址id,查询地址详情接口
     * @param productJson 商品Id集合
     * @param addressId 收货地址省份名称
     * @return
     */
    @RequestMapping(value = "/V3.0.0/rpc/freight-template/calc-freight", method = RequestMethod.POST)
    BaseResult calcFreight(@RequestParam(value = "productJson") String productJson, @RequestParam(value = "addressId") String addressId);

    /**
     * 根据code查询订单的相关配置
     * @param dictionaryCode    字典code
     * @return
     */
    @RequestMapping(value = "/V3.0.0/rpc/system-config/order-config-value", method = RequestMethod.GET)
    BaseResult getOderConfigValue(@RequestParam(value = "dictionaryCode") String dictionaryCode);

}
